﻿using Microsoft.Data.Sqlite;

namespace Infrastructure.Persistence;

public class SqliteDataProvider : NetModulerDataProvider
{
    public override bool CreateDatabaseIfNotExists(string connectionString)
    {
        using var sqliteConnection = new SqliteConnection(connectionString);
        sqliteConnection.Open();

        Console.WriteLine($"Database '{connectionString}' created successfully.");

        return true;
    }
}
